﻿using System.Collections.Generic;
using Rated.Common.Classes;
using Rated.DAL.Repository;
using Rated.Website.Helpers;

namespace Rated.Website.Models
{
    public class NavigationViewModel
    {
        public List<NavigationItem> Links { get; private set; }
        public NavigationViewModel()
        { 
            // Now we want to ask the DAL for the links, these could be different for different domain
            // Remember: This is a multi-Tenancy application and could be accessed via a variety of
            // different Urls.
            Links = NavigationRepository.Items(DomainHelper.Get);
        }
    }
}